Public Class NhanVien

    Private iSoNV As Integer
    Private sMaNV As String
    Private sTenNV As String
    Private bGioiTinh As Boolean
    Private dNgaySinh As Date
    Private sSoCMTND As String
    Private dNgayCap As Date
    Private sNoiCap As String
    Private sTKNganHang As String
    Private sDiaChiNganHang As String
    Private sDiaChiGiaDinh As String
    Private sDTCoQuan As String
    Private sDTNhaRieng As String
    Private sDTDiDong As String
    Private sEmail As String
    Private iSoViTriCV As Integer

    Public Property SoNV() As Integer
        Get
            Return iSoNV
        End Get
        Set(ByVal value As Integer)
            iSoNV = value
        End Set
    End Property

    Public Property MaNV() As String
        Get
            Return sMaNV
        End Get
        Set(ByVal value As String)
            sMaNV = value
        End Set
    End Property

    Public Property TenNV() As String
        Get
            Return sTenNV
        End Get
        Set(ByVal value As String)
            sTenNV = value
        End Set
    End Property

    Public Property GioiTinh() As Boolean
        Get
            Return bGioiTinh
        End Get
        Set(ByVal value As Boolean)
            bGioiTinh = value
        End Set
    End Property

    Public Property NgaySinh() As Date
        Get
            If (dNgaySinh.Year = 1) Then
                Return Nothing
            Else
                Return dNgaySinh
            End If
        End Get
        Set(ByVal value As Date)
            dNgaySinh = value
        End Set
    End Property

    Public Property SoCMTND() As String
        Get
            Return sSoCMTND
        End Get
        Set(ByVal value As String)
            sSoCMTND = value
        End Set
    End Property

    Public Property NgayCap() As Date
        Get
            If (dNgayCap.Year = 1) Then
                Return Nothing
            Else
                Return dNgayCap
            End If
        End Get
        Set(ByVal value As Date)
            dNgayCap = value
        End Set
    End Property

    Public Property NoiCap() As String
        Get
            Return sNoiCap
        End Get
        Set(ByVal value As String)
            sNoiCap = value
        End Set
    End Property

    Public Property TKNganHang() As String
        Get
            Return sTKNganHang
        End Get
        Set(ByVal value As String)
            sTKNganHang = value
        End Set
    End Property

    Public Property DiaChiNganHang() As String
        Get
            Return sDiaChiNganHang
        End Get
        Set(ByVal value As String)
            sDiaChiNganHang = value
        End Set
    End Property

    Public Property DiaChiGiaDinh() As String
        Get
            Return sDiaChiGiaDinh
        End Get
        Set(ByVal value As String)
            sDiaChiGiaDinh = value
        End Set
    End Property

    Public Property DTCoQuan() As String
        Get
            Return sDTCoQuan
        End Get
        Set(ByVal value As String)
            sDTCoQuan = value
        End Set
    End Property

    Public Property DTNhaRieng() As String
        Get
            Return sDTNhaRieng
        End Get
        Set(ByVal value As String)
            sDTNhaRieng = value
        End Set
    End Property

    Public Property DTDiDong() As String
        Get
            Return sDTDiDong
        End Get
        Set(ByVal value As String)
            sDTDiDong = value
        End Set
    End Property

    Public Property Email() As String
        Get
            Return sEmail
        End Get
        Set(ByVal value As String)
            sEmail = value
        End Set
    End Property

    Public Property SoViTriCV() As Integer
        Get
            Return iSoViTriCV
        End Get
        Set(ByVal value As Integer)
            iSoViTriCV = value
        End Set
    End Property

End Class
